package edu.wit.system.mapper;

import edu.wit.common.db.BaseDao;
import edu.wit.system.domain.AffairsWorkflow;
import edu.wit.system.domain.dto.AffairsWorkflowDto;
import edu.wit.system.domain.vo.Corporation;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author lee
 */
@Mapper
public interface AffairsWorkflowMapper extends BaseDao<AffairsWorkflow> {

	List<AffairsWorkflowDto> getTableList(Map<String, Object> params);

	List<AffairsWorkflowDto> getList(Map<String, Object> params);

    AffairsWorkflow selectByWorkflowId(Long id);

    String selectUsernameById(String id);

    String selectIdByUsername(String username);

    String selectCompanyNameByCompanyId(String companyId);

    List<Corporation> selectCompany();

    List<AffairsWorkflowDto> selectWorkflowList(String projectId,String corporation,String workflowType);
}
